package com.pie4cloud.pie.job.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.pie4cloud.pie.common.mybatis.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 
 *
 * @author feilei
 * @date 2022-01-10 00:54:34
 */
@Data
@TableName("t_apply_info")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "")
@Entity
@Table(name="T_APPLY_INFO")
public class ApplyInfo extends BaseEntity {

    /**
     * 申请编号
     */
    @Id
	@TableId(value = "apply_id", type = IdType.ASSIGN_ID)
	@GenericGenerator(name="snowflakeId", strategy="com.pie4cloud.pie.jpa.id.GenerateSnowflakeId")
	@GeneratedValue(generator="snowflakeId")
    @ApiModelProperty(value="申请编号")
    private Long applyId;

    /**
     * 申请描述
     */
	@Column(name = "apply_description", length = 1024)
	@ApiModelProperty(value="申请描述")
    private String applyDescription;

    /**
     * 申请资料开始时间
     */
	@Column(name = "apply_begin_time")
	@ApiModelProperty(value="申请资料开始时间")
    private Date applyBeginTime;

    /**
     * 申请资料结束时间
     */
	@Column(name = "apply_end_time")
    @ApiModelProperty(value="申请资料结束时间")
    private Date applyEndTime;

	/**
	 * 使用开始时间
	 */
	@Column(name = "use_begin_time")
	@ApiModelProperty(value="使用开始时间")
	private Date useBeginTime;

	/**
	 * 使用结束时间
	 */
	@Column(name = "use_end_time")
	@ApiModelProperty(value="使用结束时间")
	private Date useEndTime;

	/**
	 * 申请资料空间范围
	 */
	@Column(name = "apply_spacial_scale")
	@ApiModelProperty(value="申请资空间范围")
	private String applySpacialScale;


	/**
	 * 申请资料参数
	 */
	@Column(name = "apply_params")
	@ApiModelProperty(value="申请资料参数")
	private String applyParams;

	/**
	 * 收集基本配置
	 */
	@Column(name = "apply_gather_id")
	@ApiModelProperty(value="收集基本配置")
	private Long applyGatherId;

	/**
	 * 解码id
	 */
	@Column(name = "apply_playBill_id")
	@ApiModelProperty(value="解码id")
	private Long applyPlayBillId;

	/**
	 * 解码id
	 */
	@Column(name = "apply_dispense_id")
	@ApiModelProperty(value="解码id")
	private Long applyDispenseId;


	/**
	 * 申请状态 0--已提交  1--审核中 2--已完成
	 */
	@Column(name = "apply_status")
	@ApiModelProperty(value="申请状态")
	private Integer applyStatus;


}
